<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');?>
<ul>
	<?php foreach ($items as $item){?>
	<li>
		<span style="color:red">A: </span><?php echo $item->content;?>
		&nbsp;
		<a href="<?php echo site_url('faqs/addTopic/?id='.$item->id);?>">
			[<?php echo $lang['edit'];?>]
		</a>
	</li>
	<?php }?>
    
    <?php if(count((array)$votes) > 0){?>
    <li style="background:#E0E6F6;padding:5px 8px">
		<span style="color:red"><?php echo $lang['vote'];?>:</span>
        <ul>
        	<?php foreach ($votes as $item) {?>
            <li>
            	<?php echo number_format($item->sum_helpful).$lang['man_select'].': '.($item->helpful == 1 ? $lang['yes_helpful'] : $lang['answer'.$item->answer]);?>
            </li>
            <?php }?>
        </ul>
	</li>
    <?php }?>
</ul>